package w4156.idog.server;

import javax.ejb.Stateful;
import w4156.idog.model.User;
import w4156.idog.model.User.statusType;

@Stateful(mappedName = "ejb/eBlackjack/UserSLSB", name = "UserSessionBean")


public class UserSessionBean implements UserSessionRemote {
	private User user = null;

	/** Creates a new instance of UserSessionBean */
	public UserSessionBean() {
	}

	@Override
	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public User getUser() {
		return user;
	}

	@Override
	public boolean isAdmin() {
		return user.isAdmin();
	}

	@Override
	public void setStatus(statusType status) {
		user.setStatus(status);
	}

}
